package com.platform.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by zhu.xiang on 2018/11/12 0012.
 */
@Data
public class OrderExcelDTO implements Serializable {
    private String orderSn;
    private String goodsName;
    private String goodsSpecifitionNameValue;
    private BigDecimal retailPrice;
    private Integer number;
    private BigDecimal totalPrice;
    private Date payTime;
    private Integer orderUserId;
    private String orderNickname;
    private Integer referrerId;
    private String referrerNickname;
    private String consignee;
    private String mobile;
    private String province;
    private String city;
    private String district;
    private String address;
    private Date addTime;
    private String shippingName;
    private String shippingNo;
    private Integer orderStatus;


    private String getOrderStatusDesc(){
        if (orderStatus == 0) {
            return "待付款";
        } else if (orderStatus == 101) {
            return "订单已取消";
        } else if (orderStatus == 102) {
            return "订单已删除";
        } else if (orderStatus == 201) {
            return "订单已付款";
        } else if (orderStatus == 300) {
            return "订单已发货";
        } else if (orderStatus == 301) {
            return "用户确认收货";
        } else if (orderStatus == 401) {
            return "退款";
        } else if (orderStatus == 402) {
            return "完成";
        } else {
            return "未知";
        }
    }
}
